package com.java.service;

import com.java.pojo.EnterGood;
import com.java.pojo.Page;
import com.java.pojo.Stores;
import com.java.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserService {

    /*分页和根据编号模糊查询*/
    /*获取page对象*/
    Page<User> getPageByUser(Integer a, String username);
    /*总页数*/
    Integer getCount(String username);

    //添加
    int addUser(User user);


    //删除
    int delUser(Integer id);

    //查询 根据username查询
    User getUserByName( String username);

    //登录方法
    User getUserByNameAndPwAndSid(User user);

}
